home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / sort2.zip / SORTHLP.FUN < prev    next >
Text File  |  1993-01-04  |  1KB  |  24 lines

  1. { Help message procedure for SORT.PAS }
  2.  
  3. procedure helpmsg; begin
  4. writeln(' SORT -- Merge and sort multiple text files');
  5. writeln('                    Copyright, 1988, by J. W. Rider ');
  6. writeln(' Syntax :  SORT [options] [<unsorted-file-spec> ... ]');
  7. writeln(' Available options are:');
  8. writeln(' "/r"  -- reverses the sense of the sort.');
  9. writeln(' "/+#" -- sorts the lines from the data in column #.');
  10. writeln(' (a second # defines the last column of the key field.)');
  11. writeln(' "/b"  -- ignores leading blanks (spaces, tabs) in determining ');
  12. writeln('          the key.');
  13. writeln(' "/c"  -- makes the sort case-insensitive ("a"="A").');
  14. writeln(' "/d"  -- ignore non-alphanumerics in comparisons.');
  15. writeln(' "/f"  -- key defined by "awk" fields vice columns.');
  16. writeln(' "/h"  -- displays this help message rather than sort input.');
  17. writeln(' "/k"  -- output sort keys only vice input lines.');
  18. writeln(' "/n"  -- sorts the lines numerically vice alphabetically.');
  19. writeln(' "/u"  -- "unique", eliminates multiple copies of identical lines.');
  20. writeln(' "/tC" -- makes "C" the field delimiter vice tab and space.');
  21. writeln('  If first filename is missing or is "-", reads from standard');
  22. writeln('  input.  Writes to standard output.');
  23. end;
  24.